package com.jy.rhin.model.body.huizhenyijian;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

@Data
public class HuiZhenYiJian {

    /**
     * 会诊意见
     */
    @XPath(path = "/entry/observation/value/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_038_00))
    String huiZhenYJ;

    /**
     * 会诊日期
     */
    @XPath(path = "/entry/observation/effectiveTime/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_037_00))
    String huiZhenRQ;

    /**
     * 会诊单流水号
     */
    @XPath(path = "/entry/observation/performer/assignedEntity/id/text(),nullable=true"
            , xValid = @XValid(nullable = true))
    String huiZhenDLSH;

    /**
     * 会诊医师姓名
     */
    @XPath(path = "/entry/observation/performer/assignedEntity/assignedPerson/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_10_039_00))
    String huiZhenYSXM;

    /**
     * 会诊申请科室名称
     */
    @XPath(path = "/entry/observation/performer/assignedEntity/representedOrganization/name/text()")
    String shenQingKSMC;

    /**
     * 会诊医师所在医疗机构代码
     */
    @XPath(path = "/entry/observation/performer/assignedEntity/representedOrganization/asOrganizationPartOf/wholeOrganization/id/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_052_00))
    String huiZhenYSSZJGDM;

    /**
     * 会诊医师所在医疗机构名称
     */
    @XPath(path = "/entry/observation/performer/assignedEntity/representedOrganization/asOrganizationPartOf/wholeOrganization/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_013_00))
    String huiZhenYSSZJGMC;

}
